import UserRouter from '@/views/User/route'
import AnnoRouter from '@/views/Anno/route'
import AdviseRouter from '@/views/Advise/route'
import HealthyRouter from '@/views/Healthy/route'



export default [
    {
        path:"/main",
        name:"main",
        component:()=>import('./index.vue'),
        redirect:"/main/home",
        children:[  // router-viwe 
            {
                path:"/main/home",
                name:"home",
                component:()=>import("@/views/Home/Home.vue")
            },
            {
                path:"/main/role",
                name:"role",
                component:()=>import("@/views/Role/Role.vue")
            },
            {
                path:"/main/mine",
                name:"mine",
                component:()=>import("@/views/Mine/Mine.vue")
            },
            ...UserRouter,
            ...AnnoRouter,
            ...AdviseRouter,
            ...HealthyRouter
        ]
    }
]